import request from '@/utils/request'
import qs from 'qs'

// 获取所有司机
export function getDriver(data) {
  console.log(data, 40)
  return request({
    url: '/getDriver/',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 审核
export function getaudit(data) {
  console.log(data, 40)
  return request({
    url: '/getaudit/',
    method: 'get',
    params: { data }
  })
}

// 删除司机
export function getDeleteDriver(data) {
  console.log(data, 40)
  return request({
    url: '/getDeleteDriver/',
    method: 'get',
    params: { data }
  })
}

// 锁定司机
export function getLockDriver(data) {
  console.log(data, 40)
  return request({
    url: '/getLockDriver/',
    method: 'get',
    params: { data }
  })
}

// 编辑司机信息
export function geteditDriver(data) {
  console.log(data, 46)
  return request({
    url: '/geteditDriver/',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 司机订单信息
export function getDriverIndent(data) {
  console.log(data, 46)
  return request({
    url: '/getDriverIndent/',
    method: 'get',
    params: data
  })
}

// 司机的批量删除
export function getRemoved(data) {
  console.log(data, 66)
  return request({
    url: '/getRemoved/',
    method: 'get',
    params: data
  })
}

// 司机的搜索
export function searchdriver(data) {
  console.log(data, 66)
  return request({
    url: '/searchdriver/',
    method: 'post',
    data: qs.stringify(data)
  })
}
